function dataX = get_FI(sub_sec_id_ok,from_time,to_time)

financial_ratio = [];
idx_ok = [];
for i = 1 : size(sub_sec_id_ok,1)
    rslt = get_info_from_database('financial_indicators',...
        sub_sec_id_ok(i),'from', from_time, 'to',to_time);
    if ~(iscell(rslt) && strcmpi(rslt{1}, 'No Data'))
        idx_ok = horzcat(idx_ok, i);
        financial_ratio = vertcat(financial_ratio, rslt);
    end
end
financial_ratio = cell2mat(financial_ratio);
dataX = [];

for j = 1:size(financial_ratio,1)
    if sum(isnan(financial_ratio(j,:)))== 0
        dataX = vertcat(dataX, financial_ratio(j,:));
    end
end
end